package com.xian.serviceimpl;

import java.util.List;

import com.xian.dao.OrderDao;
import com.xian.domain.Greens;
import com.xian.domain.Order;

import com.xian.service.OrderService;

public class OrderServiceImpl implements OrderService {
	
private OrderDao orderDao;
	public OrderDao getOrderDao() {
	return orderDao;
}

public void setOrderDao(OrderDao orderDao) {
	this.orderDao = orderDao;
}

@Override
public void addupOrder(Order order) {
	orderDao.addupOrder(order);
	
}

@Override
public List<Order> findOrderPage(int pages) {
	// TODO Auto-generated method stub
	return orderDao.findOrderPage(pages);
}

@Override
public int findOrdercount() {
	// TODO Auto-generated method stub
	return orderDao.findOrdercount();
}

@Override
public List<Order> findOrderSort(String hql) {
	// TODO Auto-generated method stub
	return orderDao.findOrderSort(hql);
}

@Override
public void updateOrder(Order order) {
	// TODO Auto-generated method stub
	orderDao.updateOrder(order);
}

@Override
public void deleteOrder(Order order) {
	// TODO Auto-generated method stub
	orderDao.deleteOrder(order);
}

	
}
